package com.lggry.extends6constructor;

public class Test2 {
    public static void main(String[] args) {
        //子类构造器调用父类构造器的应用场景；
        Teacher t1 = new Teacher("Alan",'男',"Java");
        System.out.println(t1.getName());
        System.out.println(t1.getGender());
        System.out.println(t1.getSkill());
    }
}
